using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ShoppingCenter.Backend.Api.Model
{
    public class Merchandise : BaseModel
    {
        [Required]
        public string Name { get; set; }
         
        //  商品类别
        public virtual Commodity_category Commodity_category { get; set; }
        public int Commodity_categoryId { get; set; }
          
          //商品详情
        public virtual Details Details { get; set; }
        public int DetailsId { get; set; }
          
        //商家
        public virtual Merchant Merchant { get; set; }
        public int MerchantId { get; set; }

        public IEnumerable<Specifications> Specifications { get; set; }
        public IEnumerable<Comment> Comment { get; set; }
        public IEnumerable<Praise> Praise { get; set; }
        public IEnumerable<Shopping_Cart> Shopping_Cart { get; set; }
        public IEnumerable<Order> Order { get; set; }

        public string Msg { get; set; }


    }
}